import { IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { PartialType } from '@nestjs/swagger';
import { CreateAccountDto } from './create-account.dto';

export class UpdateAccountDto extends PartialType(CreateAccountDto) {
    @ApiProperty({ readOnly: true, description: '账号主键id，更新时必填' })
    @IsNotEmpty()
    id: number;

    @ApiProperty({ type: 'string', readOnly: true, description: '快站账号不能修改'})
    account?: string;
}
